package org.yyj.model;
import java.sql.Date;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;

public class Xsb {
    private String xh;
    private String xm;
    private int xb;
    private Date cssj;
    //private Integer zyId;
    private Integer zxf;
    private String bz;
    private byte[] zp;
    //增加zyb属性
    private Zyb zyb;
    private Set kcs=new HashSet();

    public Xsb(String xh, String xm, int xb, Date cssj, Integer zxf, String bz, byte[] zp, Zyb zyb) {
        this.xh = xh;
        this.xm = xm;
        this.xb = xb;
        this.cssj = cssj;
        this.zxf = zxf;
        this.bz = bz;
        this.zp = zp;
        this.zyb = zyb;
    }

    public Xsb(String xh, String xm, int xb) {
        this.xh = xh;
        this.xm = xm;
        this.xb = xb;
    }

    public Xsb() {
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    public int getXb() {
        return xb;
    }

    public void setXb(int xb) {
        this.xb = xb;
    }

    public Date getCssj() {
        return cssj;
    }

    public void setCssj(Date cssj) {
        this.cssj = cssj;
    }

  /*  public Integer getZyId() {
        return zyId;
    }

    public void setZyId(Integer zyId) {
        this.zyId = zyId;
    }*/

    public Integer getZxf() {
        return zxf;
    }

    public void setZxf(Integer zxf) {
        this.zxf = zxf;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public byte[] getZp() {
        return zp;
    }

    public void setZp(byte[] zp) {
        this.zp = zp;
    }
    //增加专业表zyb和kcs的getter setter方法
    public Zyb getZyb() {
        return zyb;
    }

    public void setZyb(Zyb zyb) {
        this.zyb = zyb;
    }

    public Set getKcs() {
        return kcs;
    }

    public void setKcs(Set kcs) {
        this.kcs = kcs;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Xsb xsb = (Xsb) o;
        return xb == xsb.xb && Objects.equals(xh, xsb.xh) && Objects.equals(xm, xsb.xm) && Objects.equals(cssj, xsb.cssj) && Objects.equals(zxf, xsb.zxf) && Objects.equals(bz, xsb.bz) && Arrays.equals(zp, xsb.zp);
    }

    @Override
    public int hashCode() {
        int result = Objects.hash(xh, xm, xb, cssj, zxf, bz);
        result = 31 * result + Arrays.hashCode(zp);
        return result;
    }
}
